/*
 * @Author: zjf
 * @Date: 2023-11-29 21:36:15
 * @LastEditors: zjf
 * @LastEditTime: 2023-12-08 11:09:31
 * @Description: 立项用地规划许可阶段2 建设项目用地预审与选址意见书核发3
 */

// 接口地址
export const api = window.$crud("land/approval");

// 阶段code
export const stageCode = 2;

// 业务code
export const businessCode = 3;

export const formColmuns = [
  {
    label: "项目名称",
    prop: "projectName",
    dataType: "input",
    isNotAutoWrap: true,
    disabled: true,
  },
  // {
  //   label: "项目编码",
  //   prop: "projectCode",
  //   dataType: "input",
  //   isNotAutoWrap: true,
  //   disabled: true,
  // },
  // {
  //   label: "阶段进展",
  //   prop: "stageProgress",
  //   minWidth: 140,
  //   dataType: 'dataItem',
  //   dataCode: "periodicProgress",
  //   isNotAutoWrap: true,
  // },
  {
    label: "文号",
    prop: "documentNumber",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "投资金额",
    prop: "investmentAmount",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
    append: "万元",
  },
  {
    label: "核发时间",
    prop: "approvalTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
  },
  {
    label: "拟选位置",
    prop: "proposedLocation",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "拟用地面积",
    prop: "proposedLandArea",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "拟建设规模",
    prop: "proposedConstructionScale",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "项目代码",
    prop: "projectNo",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
];

export const tableColmuns = [
  // {
  //   label: '项目编码',
  //   prop: 'projectCode',
  //   minWidth: 140,
  //   dataType: 'input',
  //   isNotAutoWrap: true,
  // },
  {
    label: "项目名称",
    prop: "projectName",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  // {
  //   label: "阶段进展",
  //   prop: "stageProgress",
  //   minWidth: 140,
  //   dataType: 'dataItem',
  //   dataCode: "periodicProgress",
  //   isNotAutoWrap: true,
  // },
  {
    label: "文号",
    prop: "documentNumber",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  // {
  //   label: "投资金额(万元)",
  //   prop: "investmentAmount",
  //   minWidth: 140,
  //   dataType: "input",
  //   isNotAutoWrap: true,
  //   append: "万元",
  // },
  {
    label: "核发时间",
    prop: "approvalTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
  },
  {
    label: "拟选位置",
    prop: "proposedLocation",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "拟用地面积",
    prop: "proposedLandArea",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "拟建设规模",
    prop: "proposedConstructionScale",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "更新时间",
    prop: "modifyTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd HH:mm:ss",
  },
  {
    label: "项目代码",
    prop: "projectNo",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
];

export const formData = {
  projectName: "", // 项目名称
  projectCode: "", // 项目编码
  // stageProgress: "",   // 阶段进展

  documentNumber: "", // 文号
  investmentAmount: "", // 投资金额
  approvalTime: "", // 核发时间
  proposedLocation: "", // 拟选位置
  proposedLandArea: "", // 拟用地面积
  proposedConstructionScale: "", // 拟建设规模
  projectNo: "", // 项目代码
};

export const rules = {};

let config = {
  api: api,
  stageCode: stageCode,
  businessCode: businessCode,
  formColmuns: formColmuns,
  tableColmuns: tableColmuns,
  formData: formData,
  rules: rules,
};

export default config;
